const getCurrentModule = require('./pathUtil');
const currentModule = getCurrentModule();
module.exports = (file, module = currentModule) => () => {
  if (currentModule === module) {
    return import('../pages' + file + '/index.vue');
  } else {
    return import('modules/ctci-' + module + '/pages' + file + '/index.vue');
  }
};
